package com.cos.lession49.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author: COS
 * @time: 2022/3/1 9:33
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Emp {
    private int eno;
    private String ename;
    private String esex;
    private double salary;
    private String pwd;
    private Date bornDate;
    private int dno;
    private String phone;
    //部门的对象属性
    private Dept d;

    public Emp(String ename, String esex, double salary, String pwd, Date bornDate, int dno, String phone) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.bornDate = bornDate;
        this.dno = dno;
        this.phone = phone;
    }

    public Emp(String ename, String esex) {
        this.ename = ename;
        this.esex = esex;
    }
}
